﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Yaml.Grammar
{
	public partial class BlockScalarModifier
	{
        public int CurrentIndent
        {
        	get {
            if (this._indent > '0' && this._indent <= '9')
            {
                return this._indent - '0';
            }
            else
            {
                return 1;
            }
        	}
        }

        public ChompingMethod ChompingMethod {
        	get {
        		switch(this._chomp) {
        			case '-':
        				return ChompingMethod.Strip;
        			case '+':
                    return ChompingMethod.Keep;
              default:
                    return ChompingMethod.Clip;
        		}
        	}
        }
/*        public ChompingMethod GetChompingMethod()
        {
            switch (this._chomp)
            {
                case '-':
                    return ChompingMethod.Strip;
                case '+':
                    return ChompingMethod.Keep;
                default:
                    return ChompingMethod.Clip;
            }
        }*/
	}
}
